Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow reading k0s config from a separate or multidoc YAML document #814

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

kke
Copy link
Contributor

@kke kke commented Dec 31, 2024

Fixes #812

  • Multiple --config statements, globs such as config/**/*.yaml or directories as in --config configs/ are now allowed.
  • spec.k0s.config can now be defined in a separate config in the standard k0s configuration format with apiVersion: k0s.k0sproject.io/v1beta1 and kind: ClusterConfig.
  • The separate k0s config can also be contained in the same multidoc YAML configuration file as the k0sctl.yaml when separated with the --- document separator.

Multidoc configuration example:

apiVersion: k0sctl.k0sproject.io/v1beta1
kind: cluster
spec:
  hosts:
    - role: single
      ssh:
        address: 10.0.0.1
  k0s:
    version: "v1.31.3+k0s.0"
---
apiVersion: k0s.k0sproject.io/v1beta1
kind: ClusterConfig
metadata:
  name: k0s
spec:
  api:
    address: 192.168.68.104
    k0sApiPort: 9443
    port: 6443

@kke kke added the enhancement New feature or request label Dec 31, 2024
@kke kke force-pushed the multidoc-yamls branch 2 times, most recently from 5f1d8d3 to cf1d29d Compare January 15, 2025 13:17
@kke kke changed the title Allow reading k0s config from a separate YAML document Allow reading k0s config from a separate or multidoc YAML document Jan 15, 2025
@kke kke force-pushed the multidoc-yamls branch 2 times, most recently from eefd3b4 to 168eadb Compare January 15, 2025 13:32
@kke kke marked this pull request as ready for review January 16, 2025 07:43
@kke kke merged commit 63ef8eb into main Jan 16, 2025
43 checks passed
@kke kke deleted the multidoc-yamls branch January 16, 2025 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support multidoc-YAMLs
1 participant